package com.zdp.dubbo.simulate.framework;

import java.util.List;
import java.util.Random;

/**
 * @author ZhengDp
 * @Date 2023/6/4 12:52
 */
public class LoadBalance {

    public static URL random(List<URL> list) {
        Random random = new Random();
        int index = random.nextInt(list.size());
        return list.get(index);
    }

}
